<?php get_instance()->view('common/header');?>
<body>
<?php if (!empty($list)): foreach ($list as $k => $v):?>
<div class="messageinfo">
    <?php if($v['type'] == 3):?>
    <a href="<?php echo getUrl('order/orderDetail?order_id='.$v['order_id'])?>">
    <?php endif;?>
    <?php if($v['type'] == 4):?>
    <a href="<?php echo getUrl('order/getServiceDetail?service_id='.$v['order_id'])?>">
    <?php endif;?>
        <span <?php if ($v['is_read'] == 1):?> class="weui-badge weui-badge_dot zi-badge_dot pos" <?php else:?> class="weui-badge_dot zi-badge_dot pos" <?php endif;?> style="left:0.5em;top:0.85em;"></span>
        <h1 class="vCenter heng f09 mb5 pt5"><?php echo $v['title']?></h1>
        <p class="f07  cor9">订单号：<?php echo $v['code']?></p>
        <p class="f07  cor9">订单金额：¥<?php echo isset($v['amount']) ? $v['amount'] : 0?></p>
        <p class="f07  cor9">发生时间：<?php echo $v['time']?></p>
        <div class="mt5">
            <div class="weui-cells mt0">
                <div class="weui-cell weui-cell_access p5_0">
                    <div class="weui-cell__bd">
                        <p class="f07 cor9"><?php echo $v['status']?></p>
                    </div>
                    <div class="weui-cell__ft"></div>
                </div>
            </div>
        </div>
    </a>
</div>
<?php endforeach; else:?>
    <div class="statebox chuizhi jdjz" style="flex: 1;height: 100%;">
        <img class="stateimgda mb5" src="<?php echo $this->staticUrl?>img/png/pic46.png" alt="">
        <span class="f11 cor9 tc mb20">亲，还没有收到消息呢！</span>
    </div>
<?php endif;?>
</body>
<script src="<?php echo $this->staticUrl?>js/base.js"></script>
</html>